import { FC } from "react";

type defaultProps = {
    name: string
    age : number
    favouriteColors: string[]
    isAvailable : boolean
}
   

const props:FC<defaultProps>  = (defaultProps) => {
  return (
    <>
      <p>My name is {defaultProps.name}!</p>
      <p>My age is {defaultProps.age}!</p>
      <p>My favourite colors are {defaultProps.favouriteColors.join(", ")}!</p>
      <p>I am {defaultProps.isAvailable ? "available" : "not available"}</p>
    </>
  );
}


export default props;